<?php get_header();?>
<section> 
<div class="container">
<div class="sjdqWrapBox">
<div class="sjdqList">
	<div class="showType">
		<?php wp_bac_breadcrumb();?>
	</div>		
	<div class="sjdqInfoBox">
		<div class="sjdqPic">
		<?php
		$currentterm = get_queried_object();
		?>
		<img src="<?php echo get_term_meta($currentterm->term_id , '_mall_icon',true);?>" alt="<?php single_cat_title();?>"/>
		</div>
		<div class="sjdqInfo">
			<div class="fontTitle"><?php single_cat_title();?> </div>
			<div class="mallAddress">
			<span class="mallName">商城地址：</span>
            <a href="<?php echo addhttp(get_term_meta($currentterm->term_id , '_mall_link',true));?>" class="blue" target="_blank" rel="nofollow">
			<?php echo get_term_meta($currentterm->term_id , '_mall_link',true);?></a>
            
          
            
            
			<div class="clear"></div>
			</div>
			<div class="mallInfoBox">
			<span class="mallName">商城介绍：</span>
			<div class="mallInfo">
			<p class="p_excerpt">
			<?php echo get_term_meta($currentterm->term_id , '_mall_desc',true);?>
			</p>
			</div>
			<div class="clear"></div>
			</div>
		</div>
		<div class="clear"></div>			
	</div>
</div>
<div class="sjdqBlueBg">
	<div class="fontTitle">商品</div>
	<div class="clear"></div>
</div>
<div class="left_box">
	<?php if( have_posts() ) : while( have_posts() ) : the_post();?>
	<div class="perContentBox">
		<div class="contentBg">
			<div class="con_title">
				<span class="conName">
				<a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php the_title();?><span class="red">&nbsp;&nbsp;&nbsp;<?php echo get_post_meta($post->ID,"_red_title",true);?></span></a>
				</span>
				<div class="clear"></div>
			</div>
			<div class="showLeft">
				<div class="proRightBox">
					<div class="pro1">
						<div class="like">
							<div class="collect"><a href="javascript:void(0);" id="<?php echo the_ID(); ?>" title="收藏本文" class="add_to_fav"><?php echo get_post_fav_count($post->ID);?></a></div>
							<div class="commentCount">
							<div class="commentCount">
							<?php comments_popup_link( '0', '1', '%'); ?>
							</div>
							</div>
							<div class="clear"></div>
						</div>
						<div class="pro_img">
						<a href="<?php the_permalink();?>" rel="nofollow">
						<?php
							if( has_post_thumbnail() ){
								echo get_the_post_thumbnail( $post->ID, array(150, 150), array('alt'=>$post->post_title) );
							}else{
								echo '<img src="'.get_post_img( '', 150, 150 ).'" alt="'.$post->post_title .'" width="150" height="150"/>';
							}
						?>
						</a>
						</div>
					</div>
				</div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<?php endwhile; endif; ?>
	<div class="clear"></div>
	<div class="pageBox">
<div class="page">
<?php pagenavi();?></div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="clear"></div>
</div>   
</section>
<?php get_footer();?>